package darknet.application.chat.impl.net.message;

import darknet.core.impl.net.AbstractMessage;
import darknet.core.spec.net.MessageHeader;
import darknet.core.spec.net.Node;

/**
 * A list channel message request.
 *
 * This message is sent by nodes to request the node to send his list
 * of hosted channels.
 *
 * @author Yoyo
 */
public class ListChannelMessage extends AbstractMessage {

    /**
     * Initialise a new ListChannel Message.
     * @param from
     * @param to
     */
    public ListChannelMessage(MessageHeader header, Node from, Node to) {
        super(header, from, to);
    }

    @Override
    public String toString() {

        StringBuilder builder = new StringBuilder("ListChannelMessage[");
        builder.append("super=");
        builder.append(super.toString());
        builder.append("]");

        return builder.toString();
    }

}
